// 所有关于mv的接口
import { request } from "./request";
// 最新mv接口
export function _getNewMV(limit, area) {
  return request({
    url: "/mv/first",
    params: {
      limit: limit,
      area: area,
    },
  });
}
/**mv排行榜*/
export function _getTopMv(limit = 10, area, offset) {
  return request({
    url: "/top/mv",
    params: {
      limit: limit,
      area,
      offset,
    },
  });
}
// 获取所有mv的接口
export function _getAllMv(params) {
  return request({
    url: "/mv/all",
    params: params,
  });
}
/**mv详情 */
export function _getMvDetail(id) {
  return request({
    url: "/mv/detail",
    params: {
      mvid: id, //mvid
    },
  });
}
/**mv地址 */
export function _getMVUrl(id) {
  return request({
    url: "/mv/url",
    params: {
      id: id, //mvid
    },
  });
}

/**mv评论 */
export function _getMVComment(id, limit, offset = 1) {
  return request({
    url: "/comment/mv",
    params: {
      id: id, //mvid
      limit: limit, //条数
      offset: offset, //页码
    },
  });
}
/**相似MV */
export function _getSimiMv(id) {
  return request({
    url: "/simi/mv",
    params: {
      mvid: id, //mvid
    },
  });
}
